package edu.xust.MetadataGenerator.domain;

import com.google.gson.annotations.Expose;

public class APIValidatorParam {
	private static final long id = Table.generateId();

	@Expose
	private String name;

	@Expose
	private String value;

	@Expose
	private String type;

	public APIValidatorParam(){
		name = "parameter";
		value = "100";
		type = "int";
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name.replace(" ", "");
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type.replace(" ", "");
	}
	public static long getId() {
		return id;
	}
	@Override
	public String toString() {
		return name;
	}

}
